<template>
  <div class="regulatory-page">
    <div class="return">
      <router-link to="/MyView" class="back">
        <Icon size="25" color="#000000" name="arrow-left" />
      </router-link>
      <div class="title">
        <p class="text">关于爱宠星球APP</p>
      </div>
    </div>
    <div class="app-logo">
      <VanImage width="6rem" height="8rem" :src="require('@/assets/backgrounds/logo.png')" class="center-image" />
    </div>
    <p class="app-title">爱宠星球</p>
    <p class="app-version">For Android V1.0.0</p>
    <div class="common-container" @click="goToPasswordManagement">
      <div class="left-section">
        <p>检测更新</p>
      </div>
      <div class="arrow">
        <Icon size="15" color="#808080" name="arrow" />
      </div>
    </div>
    <div class="common-container" @click="goToLicense">
      <div class="left-section">
        <p>服务条款</p>
      </div>
      <div class="arrow">
        <Icon size="15" color="#808080" name="arrow" />
      </div>
    </div>
  </div>
</template>

<script>
import {Icon,Image as VanImage} from "vant";

export default {
  name: "AboutView",
  components: {Icon,VanImage},
  methods:{
    goBack() {
      this.$router.go(-1);
    },
    goToLicense() {
      this.$router.push('/LicenseView');
    },
    goToPasswordManagement() {
      this.$router.push('/PasswordView');
    },
  }
}
</script>

<style scoped>
.regulatory-page {
  background-color: #F6F7F9;
  height: 100vh;
}
.return {
  background-color: #FAEAEA;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.back {
  position: absolute;
  left: 10px;
  text-decoration: none;
}
.title {
  display: flex;
  align-items: center;
}
.text {
  margin: 0;
  color: #000000;
  font-size: 16px;
}
.common-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff;
  padding: 15px 15px;
  border-bottom: 0.5px solid #e0e0e0;
  cursor: pointer;
}
.left-section {
  display: flex;
  align-items: center;
}
.arrow {
  display: flex;
  align-items: center;
}
.app-logo {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.app-title {
  text-align: center;
  font-size: 25px;
  margin-bottom: 10px;
}
.app-version
{
  text-align: center;
  font-size: 13px;
  margin-bottom: 10px;
  color:#999987;
}
</style>